#include "print.h"
#include <iostream>

static int win_cnt = 0, lose_cnt = 0, tie_cnt = 0;

void prn_help() {
    std::cout << std::endl
              << "The following numbers can be used:\n"
              << "  1  for rock\n"
              << "  2  for scissors\n"
              << "  3  for water\n"
              << "  4  for fire\n"
              << "  5  for paper\n"
              << "  6  for help\n"
              << "  7  print the game status\n"
              << "  0  quit the game\n\n";
}

void prn_game_status() {
    std::cout << "you win: " << win_cnt
              << "; ai win: " << lose_cnt
              << "; tie: " << tie_cnt << std::endl;
}

void report(outcome result) {
    switch (result) {
    case win:
        win_cnt++;
        std::cout << "you win" << std::endl;
        break;
    case lose:
        lose_cnt++;
        std::cout << "you lose" << std::endl;
        break;
    case tie:
        tie_cnt++;
        std::cout << "tie game" << std::endl;
        break;
    default:
        std::cout << " PROGRAMMER ERROR!\n\n";
        exit(1);
    }
}